@layout("/common/container.html", {bodyAttr:"class=\"pear-container\"", js:["/ds/js/memberRankConfig/memberRankConfig.js"]}) {
<div class="layui-card">
    <div class="layui-card-body">
        <table id="rankParamTable" lay-filter="rankParamTable"></table>
    </div>
</div>
<script id="stateTpl" type="text/html">
    <input type="checkbox" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="stateBtn"
           {{ AdminOperator.isAdmin() ? 'disabled' : ''}}
    {{ d.state=== '启用' ? 'checked' : '' }} />
</script>
<script id="toolbar" type="text/html">
    <button id="addButton"
            class="pear-btn pear-btn-md {{ AdminOperator.isAdmin() ? 'layui-btn-disabled' : 'pear-btn-primary'}}"
            lay-event="{{ AdminOperator.isAdmin() ? '' : 'add'}}"><i class="layui-icon layui-icon-add-1"></i>
        新增
    </button>
</script>
<script id="rowBar" type="text/html">
    <button class="pear-btn pear-btn-sm {{ AdminOperator.isAdmin() ? 'layui-btn-disabled' : 'pear-btn-primary' }}"
            lay-event="{{ AdminOperator.isAdmin() ? '' : 'edit' }}">
        <i class="layui-icon layui-icon-edit"></i>
    </button>
    <button class="pear-btn pear-btn-sm {{ AdminOperator.isAdmin() ? 'layui-btn-disabled' : 'pear-btn-danger' }}"
            lay-event="{{ AdminOperator.isAdmin() ? '' : 'remove' }}">
        <i class="layui-icon layui-icon-delete"></i>
    </button>
</script>
@}